package com.ms.education.course.service;

import com.ms.education.course.entity.CourseCollect;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 课程收藏 服务类
 * </p>
 *
 * @author ms
 * @since 2023-02-16
 */
public interface CourseCollectService extends IService<CourseCollect> {

    boolean isUserHasCourse(Integer userId, Integer courseId);

    void cancelCollect(Integer courseId, int userId);

    void collectCourse(Integer courseId, int userId);
}
